package com.tanhua;

import com.tanhua.autoconfig.template.SmsTemplate;
import com.tanhua.server.AppServerApplication;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @Description: test
 * @Create by: JJ菜菜
 * @Date: 2021/11/26 11:45
 */

@SpringBootTest(classes = AppServerApplication.class)
@RunWith(SpringRunner.class)
public class SendMessage {

    @Autowired
    private SmsTemplate smsTemplate;

    @Test
    public void send(){
        smsTemplate.sendSms("13020785602", "8848");
    }
}
